﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xmlBookstore.classLibrary
{
    public class Category
    {
        private string _catName;
        private string _typeName;

        public Category(string catName, string typeName)
        {
            _catName = catName;
            _typeName = typeName;
        }

        public string CatName
        {
            get { return _catName; }
        }

        public string TypeName
        {
            get { return _typeName; }
        }

        public override string ToString()
        {
            return _catName + ", " + _typeName;
        }

 /*       public override bool Equals(object obj)
        {
            if (obj == null) return false;
            if (Object.ReferenceEquals(this, obj)) return true;
            if (this.GetType() != obj.GetType()) return false;

           
            Category objCategory = (Category)obj;
            if (CatName.Equals(objCategory.CatName) && TypeName.Equals(objCategory.TypeName)) return true;

      //      Ocjena objOcjena = (Ocjena)obj;
      //      if (UkupnaOcjena().Equals(objOcjena.UkupnaOcjena())) return true;
            
            return false;
        }   */
    }
}
